package ch.il07.converter.business.impl;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import ch.il07.converter.business.Converter;
import ch.il07.converter.business.MeasurandAction;
import ch.il07.converter.business.ServiceFactoryAdapter;
import ch.il07.converter.business.UnitAction;
import ch.il07.converter.business.UserBusiness;

public class ServiceFactoryAdapterTest {

	@Before
	public void setUp() throws Exception {
	}

	@Test
	public void testGetUserBusinessInstance() {
		UserBusiness ub = ServiceFactoryAdapter.getUserBusinessInstance();
		assertNotNull(ub);
	}

	@Test
	public void testGetConverterInstance() {
		Converter c = ServiceFactoryAdapter.getConverterInstance();
		assertNotNull(c);
	}

	@Test
	public void testGetMeasurandActionInstance() {
		MeasurandAction ma = ServiceFactoryAdapter.getMeasurandActionInstance();
		assertNotNull(ma);
	}

	@Test
	public void testGetUnitActionInstance() {
		UnitAction ua = ServiceFactoryAdapter.getUnitActionInstance();
		assertNotNull(ua);
	}
}